package org.jbrisk.matchers;

import java.io.File;

import org.hamcrest.Description;
import org.junit.internal.matchers.TypeSafeMatcher;

public class FileMatcher extends TypeSafeMatcher<File> {

	private File comparisonFile;
	
	public FileMatcher(File comparisonFile) {
		
		super();
		
		this.comparisonFile = comparisonFile;
	}

	public void describeTo(Description arg0) {
		
	}
	
	@Override
	public boolean matchesSafely(File item) {

		return comparisonFile.getAbsolutePath().equals(item.getAbsolutePath());
	}
}
